package com.tencreat.server.message;

import com.tencreat.common.api.MsgApi;
import com.tencreat.common.entity.ImMessage;
import com.tencreat.common.entity.ImUser;
import com.tencreat.common.service.ImUserService;
import com.tencreat.server.config.NettyConfig;
import io.netty.channel.Channel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MessageApiImpl implements MsgApi {
    @Autowired
    ImUserService userService;
    @Autowired
    MessageSender messageDealer;

    @Override
    public void sendMsg(ImMessage imMessage) {
        messageDealer.sendMsg(imMessage);
    }
}
